<script setup>
	import { onLaunch } from "@dcloudio/uni-app"
	import { useUserStore, useWebConfigStore } from "@/stores";
	import { $http, useStorage } from '@/utils'
	import system from "@/utils/system";

	onLaunch((options) => {
		const appid = system.appid()
		const pid = options.query?.id;
		if (pid && !useStorage().get('PID.' + appid)) {
			useStorage().set('PID.' + appid, pid);
		}
		useWebConfigStore().initWebConfig()
		$http.get('Config/get').then(res => {
			useWebConfigStore().setWebConfig(res.data)
			uni.$emit('initConfig')
		}).catch(err => {
			uni.showModal({
				title: '温馨提示',
				content: '系统配置项错误'
			})
		})
	})
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "static/y.scss";

	page {
		background-color: #fff;
	}
	
	
	.btn-normal {
		display: block;
		margin: 0;
		padding: 0;
		line-height: normal;
		background: none;
		border-radius: 0;
		box-shadow: none;
		border: none;
		font-size: unset;
		text-align: unset;
		overflow: visible;
		color: inherit;
	}
	
	.btn-normal:after {
		border: none;
	}
	
	.btn-normal.button-hover {
		color: inherit;
	}
	
	button:after {
		content: none;
		border: none;
	}
</style>